import request from '@/utils/request'

// 查询熵豆交易市场列表
export function listMallMarketShangdou(query) {
  return request({
    url: '/mall/mallMarketShangdou/list',
    method: 'get',
    params: query
  })
}

// 查询熵豆交易市场详细
export function getMallMarketShangdou(id) {
  return request({
    url: '/mall/mallMarketShangdou/' + id,
    method: 'get'
  })
}

// 新增熵豆交易市场
export function addMallMarketShangdou(data) {
  return request({
    url: '/mall/mallMarketShangdou',
    method: 'post',
    data: data
  })
}

// 修改熵豆交易市场
export function updateMallMarketShangdou(data) {
  return request({
    url: '/mall/mallMarketShangdou',
    method: 'put',
    data: data
  })
}

// 删除熵豆交易市场
export function delMallMarketShangdou(id) {
  return request({
    url: '/mall/mallMarketShangdou/' + id,
    method: 'delete'
  })
}

// 确认转账并完结
export function confirmTransfer(data) {
  return request({
    url: '/mall/mallMarketShangdou/finished',
    method: 'get',
    params: data
  })
}
